﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Flow_FlowStep" Codebehind="FlowStep.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title></title>
    <link href="../css.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="../Celend/popcalendar.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="100%">
		<tr height="30">
			<td width="3%" background="../Images/topbg.jpg" align=center><IMG height="16" src="../Images/icon/right.GIF"></td>
			<td background="../Images/topbg.jpg" width="80"><b>流程步骤列表</b></td>
			<TD background="../Images/topbg.jpg" align="right">
			</TD>
		</tr>
	</table>
        <table align="center" border="0" cellpadding="1" cellspacing="0" width="100%">
        <tr>
            <td style="height: 28px"></td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDeleting="GridView1_RowDeleting">
                    <Columns>
                        <asp:BoundField DataField="Num" HeaderText="序号" />
                        <asp:TemplateField HeaderText="名称">
                            <ItemTemplate>
                                <asp:Label ID="lblAction" runat="server"><%# getAction(DataBinder.Eval(Container.DataItem,"ActionID").ToString())%></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="相关人员" >
                            <ItemTemplate>
                                <asp:Label ID="lblPerson" runat="server"><%# getPerson(DataBinder.Eval(Container.DataItem, "ID").ToString())%></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="是否会签">
                            <ItemTemplate>
                                <asp:Label ID="lblJoin" runat="server"><%# DataBinder.Eval(Container.DataItem,"IsJoin").ToString().Equals("1")?"是":"否" %></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="是否结束">
                            <ItemTemplate>
                                <asp:Label ID="lblEnd" runat="server"><%# DataBinder.Eval(Container.DataItem,"IsEnd").ToString().Equals("1")?"是":"否" %></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="绑定">
                            <ItemTemplate>
                                <a href="StepBind.aspx?stepid=<%# DataBinder.Eval(Container.DataItem,"ID") %>&flowid=<%# DataBinder.Eval(Container.DataItem,"FlowID") %>">绑定</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="修改">
                            <ItemTemplate>
                                <a href="NewStep.aspx?flowid=<%# DataBinder.Eval(Container.DataItem,"FlowID") %>&stepid=<%# DataBinder.Eval(Container.DataItem,"ID") %>">修改</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <EditRowStyle BackColor="#2461BF" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnStep" runat="server" class="BnCss" Text="新建流程步骤"  OnClick="btnStep_Click" /></td>
        </tr>
        </table>
    </form>
</body>
</html>
